package sandbox;
import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
		JFrame frame = new JFrame();
		
		frame.setLocation(400, 300);
		frame.addWindowListener(new WindowAdapter(){
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            });
		PersonnageEssai p = new PersonnageEssai("trunks.png");		
		frame.add(p);
		frame.getContentPane().setBackground(Color.black);
		frame.pack();
		frame.setVisible(true);
		new Thread(p).start();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}	

		
	}

}
